// clearing unordered_map
#include <bits/stdc++.h>
using namespace std;
int main ()
{
    unordered_map<string,string> mymap =
            { {"house","maison"}, {"car","voiture"}, {"grapefruit","pamplemousse"} };
    cout << "mymap contains:\n";
    for (auto& x: mymap)
        cout << x.first << "=" << x.second<<"\n";

    mymap.clear();
    mymap["hello"]="bonjour";
    mymap["sun"]="soleil";

    cout << "mymap contains:\n";
    for (auto& x: mymap)
        cout << " " << x.first << "=" << x.second<<"\n";
    return 0;
}
